﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business;
using Database;
using System.Collections;

namespace DT5_Anh09110006_Hung09110044_Vu09110157.QuanLy
{
    public partial class TinhLuong : System.Web.UI.Page
    {
        Business.QuanLyTinhLuong qlLuong = new Business.QuanLyTinhLuong();
        protected void Page_Load(object sender, EventArgs e)
        {
            lblLuongThang.Text = "Lương tháng " + DateTime.Today.Month + "/" + DateTime.Today.Year;
            if(!IsPostBack)
            {
                LoadDuLieu();
            }
        }

        public void LoadDuLieu()
        {
            GridView1.DataSource = qlLuong.LayDanhSachLuong();
            GridView1.DataBind();
        }
    }
}